home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
023a
/
prop_man.zip
/
CLOSING.SAB
< prev
next >
Wrap
Text File
|
1991-10-15
|
3KB
|
74 lines
set messages off ; set error messages off
CLEAR ALL V
label retry
cls
DISPLAY CP.DIS
WRITE "CLOSING.SAB" AT 2,36
WRITE " " AT 12,21
write "Enter Account Code: " AT 12,1
write "(Enter Address Code, Or Press <ESC> To Exit Program) " at 14,1
fillin code using " " at 12,22
if code = "" then ; goto oops ; endif
SET POINTER #1 END FOR CUR.MAST WHERE ADD.CODE = .CODE
IF END <> 0 THEN
BEEP;BEEP
WRITE "Address Code Does Not Exist In The Current Master File" AT 14,1
write "Press Any Key To Continue." at 15,1
pause
GOTO RETRY
ENDIF
SET V NAME TO tenant1 IN #1
SET V TOTDUE TO TOT.DUE IN #1
WRITE " " AT 14, 1
WRITE "CURRENT TENANT: " AT 16,1
WRITE "CURRENT BALANCE: " AT 16,40
WRITE .NAME AT 16,17
WRITE .TOTDUE AT 16,57
WRITE "-----------------------------------------------------------------------+
---------" AT 15,1
WRITE "-----------------------------------------------------------------------+
---------" AT 17,1
FILLIN Y/N USING "IS THIS THE TENANT THAT YOU WANT TO CLOSE? " AT 19,1
IF Y/N = "Y" OR Y/N = "y" OR Y/N = "YES" THEN ; goto clo ; endif
goto oops
label clo
CHANGE CLOSEDON TO .#DATE IN CUR.MAST WHERE ADD.CODE = .CODE
change movedout to .#date in cur.mast where add.code = .code
cls
display cp.dis
write "CLOSING.SAB" at 2,36
set v mn to ""
fillin mn using "Set Billing Address To Null? " at 8,25
if mn = "n" or mn = "no" then ; goto skip ; endif
cha bill.add to "" in cur.mast where add.code = .code
cha bill.cty to "" in cur.mast where add.code = .code
cha bill.sta to "" in cur.mast where add.code = .code
cha bill.zip to "" in cur.mast where add.code = .code
label skip
fillin bn using "Should There Be A Call-Up For Absconding? " at 9,19
if bn = "n" or bn = "no" then ; goto sagain ; endif
cha rec.call to (.#date + 6) in cur.mast where add.code = .code
cha exp.date to (.#date + 26) in cur.mast where add.code = .code
cha reason to "File Papers For Absconding" in cur.mast whe add.code = .code
label sagain
set v yn to ""
APPEND CUR.MAST TO OLD.mast WHERE ADD.CODE = .CODE
append cur.mast to secdep where add.code = .code and sec.dep > 0
fillin yn using "Enter This Account Into LOOKUP? (Y/N) " at 10,19
if yn = "n" then ; goto j1 ; endif
run names.sab
label j1
write "CLOSING.SAB" at 2,36
SET NULL " "
edit using security where add.code = .code and tenant1 = .name
if yn = "n" then ; goto j2 ; endif
edit using edlook where add.code = .code and year = .yr
label j2
cls
label fin
DELETE ROWS FROM CUR.MAST WHERE ADD.CODE = .CODE
label oops
cls
return